package com.ruibang.glass.quality.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruibang.glass.quality.domain.req.ColdDirectReq;
import com.ruibang.glass.quality.domain.resp.PointDefect;
import com.ruibang.glass.quality.entity.CheckAverageBoard;
import com.ruibang.glass.quality.entity.EveryHourColdDirectLoss;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EveryHourColdDirectLossMapper extends CommonMapper<EveryHourColdDirectLoss> {

    IPage<EveryHourColdDirectLoss> queryEveryHourColdDirect(IPage<EveryHourColdDirectLoss> page,@Param("coldDirect") ColdDirectReq coldDirectReq);

    List<EveryHourColdDirectLoss> queryTodayData(@Param("today") String today);

    List<CheckAverageBoard> queryCheckAverage(@Param("coldDirect") ColdDirectReq coldDirectReq);

    List<EveryHourColdDirectLoss> queryDefect(@Param("coldDirect") ColdDirectReq coldDirectReq);

    List<PointDefect> getPointDefectData(@Param("coldDirect") ColdDirectReq coldDirectReq);
}
